package com.cpsdna.bean.user;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

import java.util.Date;

/**
 * Created by Jianghao on 2017/2/27.
 * 实名认证
 *
 * @author Howe(howechiang@gmail.com)
 */
@Table("user_realauth")
public class Realauth {

    /**
     * 用户ID
     */
    @Id(auto = false)
    @Column("user_id")
    private Integer userId;

    /**
     * 真实名称
     */
    @Column("real_name")
    private String realName;

    /**
     * 身份证号码（个人）或统一社会信用代码（企业）
     */
    @Column("citizen_id")
    private String citizenId;


    /**
     * 验证状态
     */
    @Column("verify_status")
    private Integer verifyStatus;

    /**
     * 认证时间
     */
    @Column("verify_time")
    private Date verifyTime;

    /**
     * 认证类型 1个人 2企业
     */
    @Column("auth_type")
    private Integer authType;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getCitizenId() {
        return citizenId;
    }

    public void setCitizenId(String citizenId) {
        this.citizenId = citizenId;
    }

    public Integer getVerifyStatus() {
        return verifyStatus;
    }

    public void setVerifyStatus(Integer verifyStatus) {
        this.verifyStatus = verifyStatus;
    }

    public Date getVerifyTime() {
        return verifyTime;
    }

    public void setVerifyTime(Date verifyTime) {
        this.verifyTime = verifyTime;
    }

    public Integer getAuthType() {
        return authType;
    }

    public void setAuthType(Integer authType) {
        this.authType = authType;
    }

    public Realauth(Integer userId, String realName, String citizenId, Integer verifyStatus, Date verifyTime, Integer authType) {
        this.userId = userId;
        this.realName = realName;
        this.citizenId = citizenId;
        this.verifyStatus = verifyStatus;
        this.verifyTime = verifyTime;
        this.authType = authType;
    }

    public Realauth() { }

    @Override
    public String toString() {
        return "Realauth{" +
                "userId=" + userId +
                ", realName='" + realName + '\'' +
                ", citizenId='" + citizenId + '\'' +
                ", verifyStatus=" + verifyStatus +
                ", verifyTime=" + verifyTime +
                ", authType=" + authType +
                '}';
    }
}